﻿using God.ShoppingWebApi.DTO;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace God.ShoppingWebApi.IService
{
   public interface IAdminPermissionSerive: IApplicationService
    {
        /// <summary>
        /// 权限显示
        /// </summary>
        /// <returns></returns>
        Task<List<PermissionDTO>> GetListAsync();
        /// <summary>
        /// 权限添加
        /// </summary>
        /// <param name="commodInfo"></param>
        /// <returns></returns>
        public Task AddAsync(PermissionDTO permission);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="gu"></param>
        /// <returns></returns>
        Task DeleteAsync(Guid gu);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="infoDTO"></param>
        /// <returns></returns>
        Task<PermissionDTO> Update(PermissionDTO permissionDTO);
        /// <summary>
        /// 返填
        /// </summary>
        /// <param name="gid"></param>
        /// <returns></returns>
        Task<PermissionDTO> Edit(Guid gid);


    }
}
